<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        p {
            display: block;
            background-color: hotpink;
        }

        div {
            display: inline;
            background-color: lightgreen;
        }

        span {
            background-color: lightsalmon;
        }
    </style>
</head>

<body>
    <p></p>
    <div></div>
    <span></span>
</body>

</html>
<!-- display:block; -->
<!-- 将行内元素转化成块元素  -->

<!-- display: inline; -->
<!--  将div块内元素转化成行元素  -->

<!-- display: inline-block; -->
<!-- 将行内元素转换为行内块元素-->
<!-- 重点！！！！一定得会的！加油！！ -->